<?php
/**
 * User: Punk<punkv@qq.com>
 * Date: 2016/7/2
 * Time: 21:39
 */

namespace app\admin\controller;


use app\common\model\Config;
use think\Request;

class WxConfig extends Admin
{
    public function index()
    {
        $config = new Config();
        if (Request::instance()->isPost()) {
            $param = Request::instance()->param();
            $config->setBatch($param);
            return $this->success('保存成功');
        } else {
            $data = $config->getValues('1,2,3');
            $this->assign('data', $data);
            return $this->fetch();
        }
    }
}